home *** CD-ROM | disk | FTP | other *** search
/ Winzipper / Winzipper_ISO.iso / nt4.0 server / OEMNADUM.IN_ / oemnadum.inf
INI File  |  1996-07-12  |  22KB  |  583 lines

  1. [Identification]
  2.     OptionType = NetAdapter
  3. [PlatformsSupported]
  4.     MCA
  5. [Options]
  6.     UBPS
  7. [FileConstants]
  8. UtilityInf      = "UTILITY.INF"
  9. subroutineinf   = "SUBROUTN.INF"
  10. SoftwareType    = "driver"
  11. Exit_Code       = 0
  12. NetEventDLL     = "%SystemRoot%\System32\netevent.dll"
  13. IoLogMsgDLL     = "%SystemRoot%\System32\IoLogMsg.dll"
  14. UBPS_1BYTE      = 18
  15. UBPS_2BYTE      = 112
  16. NETCARD_ID      = 28690
  17. Manufacturer    = "Microsoft"
  18. ProductMajorVersion     = "4"
  19. ProductMinorVersion     = "0"
  20. ProductVersion  = $(ProductMajorVersion)"."$(ProductMinorVersion)
  21. ProductSoftwareName     = "UB"
  22. ProductSoftwareImagePath = "\SystemRoot\System32\drivers\ubnei.sys"
  23. NetRuleSoftwareType     = "ubneiSys ndisDriver ubDriver"
  24. NetRuleSoftwareUse      = $(SoftwareType)
  25. NetRuleSoftwareBindForm = """UbneiSys"" yes no container"
  26. NetRuleSoftwareClass    = {"ubDriver basic"}
  27. NetRuleSoftwareBindable = {"ubDriver ubAdapter non exclusive 100"}
  28. ProductHardwareName     = "UB"
  29. NetRuleHardwareType     = "ub ubAdapter"
  30. NetRuleHardwareBindForm = " yes yes container"
  31. NetRuleHardwareClass    = {"ubAdapter basic"}
  32. ProductOpSupport     = 132 
  33. ProductKeyName  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
  34. ParamKeyName    = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters"
  35. [GeneralConstants]
  36. from      = ""
  37. to        = ""
  38. ExitCodeOk     = 0
  39. ExitCodeCancel = 1
  40. ExitCodeFatal  = 2
  41. KeyNull         = ""
  42. MAXIMUM_ALLOWED   = 33554432
  43. RegistryErrorIndex = NO_ERROR
  44. KeyProduct      = ""
  45. KeyParameters   = ""
  46. TRUE            = 1
  47. FALSE           = 0
  48. NoTitle            = 0
  49. ExitState   = "Active"
  50. OldVersionExisted = $(FALSE)
  51. DriverPath      = $(!STF_NTPATH)\drivers
  52. [date]
  53.     Now = {} ? $(!LIBHANDLE) GetSystemDate
  54. [Identify]
  55.     read-syms Identification
  56.     set Status     = STATUS_SUCCESSFUL
  57.     set Identifier = $(OptionType)
  58.     set Media      = #("Source Media Descriptions", 1, 1)
  59.     Return $(Status) $(Identifier) $(Media)
  60. [ReturnOptions]
  61.     set Status        = STATUS_FAILED
  62.     set OptionList     = {}
  63.     set OptionTextList = {}
  64.     set LanguageList = ^(LanguagesSupported, 1)
  65.     Ifcontains(i) $($0) in $(LanguageList)
  66.         ifstr(i) $($1) == ""
  67.            goto returnoptions
  68.         endif
  69.         set PlatformList = ^(PlatformsSupported, 1)
  70.         Ifcontains(i) $($1) in $(PlatformList)
  71.            goto returnoptions
  72.         else
  73.            set Status = STATUS_NOTSUPPORTED
  74.            goto finish_ReturnOptions
  75.         endif
  76.     else
  77.         set Status = STATUS_NOLANGUAGE
  78.         goto finish_ReturnOptions
  79.     endif
  80. returnoptions = +
  81.     set OptionList     = ^(Options, 1)
  82.     set OptionTextList = ^(OptionsText$($0), 1)
  83.     set Status         = STATUS_SUCCESSFUL
  84. finish_ReturnOptions = +
  85.     Return $(Status) $(OptionList) $(OptionTextList)
  86. [InstallOption]
  87.     set Option   = $($1)
  88.     set SrcDir   = $($2)
  89.     set AddCopy  = $($3)
  90.     set DoCopy   = $($4)
  91.     set DoConfig = $($5)
  92.     set LanguageList = ^(LanguagesSupported, 1)
  93.     Ifcontains(i) $($0) NOT-IN $(LanguageList)
  94.         Return STATUS_NOLANGUAGE
  95.     endif
  96.     Debug-Output "OEMNADUM.INF: STF_CWDIR is: "$(!STF_CWDIR)
  97.     Debug-Output "OEMNADUM.INF: STF_LANGUAGE is: "$(!STF_LANGUAGE)
  98.     set-subst LF = "\n"
  99.     read-syms GeneralConstants
  100.     read-syms FileConstants
  101.     read-syms DialogConstants$(!STF_LANGUAGE)
  102.     read-syms FileConstants$(!STF_LANGUAGE)
  103.     detect date
  104.     set-title  $(FunctionTitle)
  105.     set to   = Begin
  106.     set from = Begin
  107.     set CommonStatus = STATUS_SUCCESSFUL
  108.     EndWait
  109. Begin = +
  110.     Ifstr(i) $(!NTN_InstallMode) == deinstall
  111.         set StartLabel = removeadapter
  112.     else-Ifstr(i) $(!NTN_InstallMode) == Update
  113.         set StartLabel = UpgradeSoftware
  114.     else-Ifstr(i) $(!NTN_InstallMode) == bind
  115.         set StartLabel = bindingadapter
  116.     else-Ifstr(i) $(!NTN_InstallMode) == configure
  117.         set CommonStatus = STATUS_REBOOT
  118.         Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  119.             Debug-Output "Cannot configure the ubps driver software."
  120.             Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
  121.         else
  122.             Debug-Output "Cannot configure the ubps adapter card."
  123.             Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_HARDWARE
  124.         endif
  125.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  126.             Debug-Output "ShellCode error: cannot get an error string."
  127.             goto ShellCodeError
  128.         endif
  129.         set Error = $($R0)
  130.         set from = end
  131.         set to = end
  132.         goto nonfatalinfo
  133.     else
  134.         set StartLabel = installadapter
  135.         set OEM_ABANDON_OPTIONS = {}
  136.         set OEM_ABANDON_SOFTWARE = FALSE
  137.         set OEM_ABANDON_ON = TRUE
  138.     endif
  139.     set from = $(fatal)
  140.     set to = $(fatal)
  141.     goto $(StartLabel)
  142. installadapter = +
  143.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  144.     Ifstr $(KeyProduct) != $(KeyNull)
  145.         CloseRegKey $(KeyProduct)
  146.         ifstr(i) !(NTN_RegBase) == $(ProductKeyName)
  147.            Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
  148.                $(ProductVersion)
  149.            ifint $($ShellCode) != $(!SHELL_CODE_OK)
  150.                Debug-Output "ShellCode error: cannot get an error string."
  151.                goto ShellCodeError
  152.            endif
  153.            goto end
  154.         else
  155.            Shell $(UtilityInf), CardExistedDlg
  156.            ifint $($ShellCode) != $(!SHELL_CODE_OK)
  157.                Debug-Output "ShellCode error: cannot get an error string."
  158.                goto ShellCodeError
  159.            endif
  160.            ifstr(i) $($R1) != "OK"
  161.                Set CommonStatus = STATUS_USERCANCEL
  162.                goto end
  163.            endif
  164.            set OldVersionExisted = $(TRUE)
  165.         endif
  166.     endif
  167.     goto nextstep
  168. configureadapter = +
  169.     set Error = "Configure: Not Implmemented yet"
  170.     goto fatal
  171. nextstep = +
  172.     StartWait
  173. installproduct = +
  174.     Shell $(UtilityInf), MCAFindBus, $(UBPS_1BYTE), $(UBPS_2BYTE)
  175.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  176.         goto ShellCodeError
  177.     endif
  178.     ifstr $($R0) != "NO_ERROR"
  179.         set Error = $($R0)
  180.         goto fatal
  181.     endif
  182.     ifstr(i) $($R1) == {}
  183.         set Error = $(CANNOT_FIND_ANY_CARD)
  184.         set CommonStatus = STATUS_USERCANCEL
  185.         set from = "end"
  186.         goto nonfatal
  187.     endif
  188.     set AdapterList = $($R1)
  189.     ifint $(OldVersionExisted) == $(FALSE)
  190.         ifstr(i) $(!NTN_InstallMode) == "install"
  191.            Ifstr(i) $(DoCopy) == "YES"
  192.               Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
  193.               Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  194.                   Goto ShellCodeError
  195.               Else-Ifstr(i) $($R0) == STATUS_FAILED
  196.                   Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
  197.                   ifint $($ShellCode) != $(!SHELL_CODE_OK)
  198.                       goto ShellCodeError
  199.                   endif
  200.                   set Error = $($R0)
  201.                   Goto fatal
  202.               Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  203.                   Goto successful
  204.               Endif
  205.               Set SrcDir = $($R1)
  206.            Endif
  207.            install "Install-Option"
  208.            ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  209.               Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
  210.               ifint $($ShellCode) != $(!SHELL_CODE_OK)
  211.                   goto ShellCodeError
  212.               endif
  213.               set Error = $($R0)
  214.               goto fatal
  215.            endif
  216.         endif
  217.         Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
  218.             $(ProductSoftwareName), +
  219.             $(ProductSoftwareName), +
  220.             $(ProductSoftwareTitle), $(STF_CONTEXTINFNAME), +
  221.             $(ProductSoftwareImagePath), "kernel", "NDIS", {}, "",+
  222.             $(NetEventDLL)
  223.         Set OEM_ABANDON_SOFTWARE = TRUE
  224.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  225.             goto ShellCodeError
  226.         endif
  227.         set RegistryErrorIndex = $($R0)
  228.         Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  229.             EndWait
  230.             CloseRegKey $($R1)
  231.             CloseRegKey $($R2)
  232.             CloseRegKey $($R3)
  233.             CloseRegKey $($R4)
  234.             CloseRegKey $($R5)
  235.             goto fatalregistry
  236.         endif
  237.         Set SoftProductKey      = $($R1)
  238.         Set SoftNetRuleKey      = $($R2)
  239.         Set SoftServiceKey      = $($R3)
  240.         Set SoftParameterKey    = $($R4)
  241.         Set SoftLinkageKey      = $($R5)
  242.         set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
  243.                            {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
  244.                            {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
  245.                            {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
  246.                            {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
  247.                            {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
  248.                            {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  249.         Shell  $(UtilityInf), AddValueList, $(SoftProductKey), $(NewValueList)
  250.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  251.             goto ShellCodeError
  252.         endif
  253.         set RegistryErrorIndex = $($R0)
  254.         Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  255.             EndWait
  256.             CloseRegKey $(SoftProductKey)
  257.             CloseRegKey $(SoftNetRuleKey)
  258.             CloseRegKey $(SoftServiceKey)
  259.             CloseRegKey $(SoftParameterKey)
  260.             CloseRegKey $(SoftLinkageKey)
  261.             goto fatalregistry
  262.         endif
  263.         set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType)},+
  264.                             {use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
  265.                             {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
  266.                             {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
  267.                             {bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindable)}, +
  268.                             {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  269.         Shell  $(UtilityInf), AddValueList, $(SoftNetRuleKey), $(NewValueList)
  270.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  271.             goto ShellCodeError
  272.         endif
  273.         set RegistryErrorIndex = $($R0)
  274.         CloseRegKey $(SoftProductKey)
  275.         CloseRegKey $(SoftNetRuleKey)
  276.         CloseRegKey $(SoftServiceKey)
  277.         CloseRegKey $(SoftParameterKey)
  278.         CloseRegKey $(SoftLinkageKey)
  279.         Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  280.             EndWait
  281.             goto fatalregistry
  282.         endif
  283.     endif
  284.     ForListDo $(AdapterList)
  285.         set BusNum = *($($),1)
  286.         set SlotNum = *($($),2)
  287.         Debug-Output $(BusNum)
  288.         Debug-Output $(SlotNum)
  289.         Shell $(UtilityInf), IsNetCardAlreadyInstalled, $(BusNum), +
  290.             $(SlotNum), $(ProductHardwareDescription), $(ProductHardwareName)
  291.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  292.             goto ShellCodeError
  293.         endif
  294.         ifstr $($R0) != "NO_ERROR"
  295.             set Error = $($R0)
  296.             goto fatal
  297.         endif
  298.         ifstr(i) $($R1) != "YES"
  299.                 Shell $(UtilityInf), AddHardwareComponent, $(ProductHardwareName),$(STF_CONTEXTINFNAME),$(ProductKeyName)
  300.                 ifint $($R4) != -1
  301.                     Set OEM_ABANDON_OPTIONS = >($(OEM_ABANDON_OPTIONS), $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$($R4))
  302.                 endif
  303.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  304.                     goto ShellCodeError
  305.                 endif
  306.                 set RegistryErrorIndex = $($R0)
  307.                 Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  308.                     EndWait
  309.                     CloseRegKey $($R1)
  310.                     CloseRegKey $($R2)
  311.                     CloseRegKey $($R3)
  312.                     goto fatalregistry
  313.                 endif
  314.                 Set HardNetCardKey      = $($R1)
  315.                 Set HardNetRuleKey      = $($R2)
  316.                 Set HardParameterKey    = $($R3)
  317.                 set AdapterNumber       = $($R4)
  318.                 set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
  319.                                    {Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardwareTitle)},+
  320.                                    {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareDescription)},+
  321.                                    {ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
  322.                                    {ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
  323.                                    {OperationsSupport,$(NoTitle),$(!REG_VT_DWORD),$(ProductOpSupport)},+
  324.                                    {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  325.                 Shell  $(UtilityInf), AddValueList, $(HardNetCardKey), $(NewValueList)
  326.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  327.                     goto ShellCodeError
  328.                 endif
  329.                 set NewValueList = {{BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNum)},+
  330.                                 {BusType,$(NoTitle),$(!REG_VT_DWORD),3},+
  331.                                 {CardType,$(NoTitle),$(!REG_VT_DWORD),3},+
  332.                                 {McaPosId,$(NoTitle),$(!REG_VT_DWORD),$(NETCARD_ID)},+
  333.                                 {MediaType,$(NoTitle),$(!REG_VT_DWORD),1},+
  334.                                 {SlotNumber,$(NoTitle),$(!REG_VT_DWORD),$(SlotNum)}}
  335.                 Shell  $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList)
  336.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  337.                     goto ShellCodeError
  338.                 endif
  339.                 set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
  340.                 set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
  341.                 set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardwareType)},+
  342.                                     {bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
  343.                                     {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardwareClass)}, +
  344.                                     {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  345.                 Shell  $(UtilityInf), AddValueList, $(HardNetRuleKey), $(NewValueList)
  346.                 CloseRegKey $(HardNetCardKey)
  347.                 CloseRegKey $(HardNetRuleKey)
  348.                 CloseRegKey $(HardParameterKey)
  349.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  350.                     goto ShellCodeError
  351.                 endif
  352.          endif
  353.     EndForListDo
  354.     goto writeparameters
  355. writeparameters = +
  356.     EndWait
  357.     goto successful
  358. bindingadapter =+
  359.     set Error = "Binding: Not Implmemented yet"
  360.     goto fatal
  361. removeadapter = +
  362.     Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  363.         Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  364.             $(ProductSoftwareName)
  365.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  366.             Debug-Output "ShellCode error"
  367.             goto ShellCodeError
  368.         endif
  369.         set RegistryErrorIndex = $($R0)
  370.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  371.             goto fatalregistry
  372.         endif
  373.     else
  374.         Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  375.             $(ProductSoftwareName), $(!NTN_RegBase)
  376.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  377.             Debug-Output "ShellCode error"
  378.             goto ShellCodeError
  379.         endif
  380.         set RegistryErrorIndex = $($R0)
  381.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  382.             goto fatalregistry
  383.         endif
  384.     endif
  385.     goto end
  386. UpgradeSoftware = +
  387.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  388.     Ifstr $(KeyProduct) != $(KeyNull)
  389.         install "Install-Update"
  390.         ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  391.             goto fatal
  392.         endif
  393.         SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
  394.         SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
  395.         CloseRegKey $(KeyProduct)
  396.     else
  397.         goto fatalregistry
  398.     endif
  399.     set iSearch = 1
  400. nextnetcard = +
  401.     Shell $(UtilityInf), FindNextNetworkCard, $(ProductHardwareName), $(iSearch)
  402.     set KeyNetcard = $($R0)
  403.     set iSearch = $($R1)
  404.     Debug-Output "OemNadEp.Inf: FindNextNetworkCard "$(KeyNetcard)","$(iSearch)
  405.     Ifstr $(KeyNetcard) != $(KeyNull)
  406.         Debug-Output "OemNadEp.Inf: Setting OperationsSupport value"
  407.         SetRegValue $(KeyNetcard) {OperationsSupport,$(NoTitle),$(!REG_VT_DWORD),$(ProductOpSupport)}
  408.         CloseRegKey $(KeyNetcard)
  409.         goto nextnetcard
  410.     Endif
  411.     goto end
  412. successful = +
  413.     goto end
  414. abandon = +
  415.     ForListDo $(OEM_ABANDON_OPTIONS)
  416.         Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  417.             $(ProductSoftwareName), $($)
  418.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  419.             Debug-Output "ShellCode error"
  420.             goto ShellCodeError
  421.         endif
  422.         set RegistryErrorIndex = $($R0)
  423.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  424.             goto fatalregistry
  425.         endif
  426.     EndForListDo
  427.     Ifstr(i) $(OEM_ABANDON_SOFTWARE) == TRUE
  428.         Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  429.             $(ProductSoftwareName), FALSE
  430.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  431.             Debug-Output "ShellCode error"
  432.             goto ShellCodeError
  433.         endif
  434.         set RegistryErrorIndex = $($R0)
  435.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  436.             goto fatalregistry
  437.         endif
  438.     endif
  439.     goto end
  440. warning = +
  441.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
  442.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  443.         goto ShellCodeError
  444.     endif
  445.     ifstr(i) $($R1) == "OK"
  446.         goto $(to)
  447.     else-ifstr(i) $($R1) == "CANCEL"
  448.         goto $(from)
  449.     else
  450.         goto "end"
  451.     endif
  452. nonfatalinfo = +
  453.     Set CommonStatus = STATUS_USERCANCEL
  454.     Set Severity = STATUS
  455.     goto nonfatalmsg
  456. nonfatal = +
  457.     Set Severity = NONFATAL
  458.     goto nonfatalmsg
  459. nonfatalmsg = +
  460.     ifstr(i) $(Error) == ""
  461.         Set Severity = NONFATAL
  462.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  463.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  464.             goto ShellCodeError
  465.         endif
  466.         set Error = $($R0)
  467.     endif
  468.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
  469.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  470.         goto ShellCodeError
  471.     endif
  472.     ifstr(i) $($R1) == "OK"
  473.         goto $(from)
  474.     else
  475.         goto "end"
  476.     endif
  477. fatalregistry = +
  478.     Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
  479.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  480.         goto ShellCodeError
  481.     endif
  482.     set Error = $($R0)
  483.     goto fatal
  484. fatal = +
  485.     ifstr(i) $(Error) == ""
  486.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  487.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  488.             goto ShellCodeError
  489.         endif
  490.         set Error = $($R0)
  491.     endif
  492.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
  493.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  494.         goto ShellCodeError
  495.     endif
  496.     goto setfailed
  497. ShellCodeError = +
  498.     set DlgType      = "MessageBox"
  499.     set STF_MB_TITLE = $(ShellCodeErrorTitle)
  500.     set STF_MB_TEXT  = $(ShellCodeErrorText)
  501.     set STF_MB_TYPE  = 1
  502.     set STF_MB_ICON  = 3
  503.     set STF_MB_DEF   = 1
  504.     ui start "Error Message"
  505.     goto setfailed
  506. setfailed = +
  507.     set CommonStatus = STATUS_FAILED
  508.     ifstr(i) $(OEM_ABANDON_ON) == TRUE
  509.         set OEM_ABANDON_ON = FALSE
  510.         goto abandon
  511.     endif
  512.     goto end
  513. end = +
  514.     goto term
  515. term = +
  516.     Return $(CommonStatus)
  517. [Install-Option]
  518.     set STF_VITAL = ""
  519.     ifstr(i) $(AddCopy) == "YES"
  520.         AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  521.     endif
  522.     ifstr(i) $(DoCopy) == "YES"
  523.        set !STF_NCPA_FLUSH_COPYLIST = TRUE
  524.        CopyFilesInCopyList
  525.     endif
  526.     ifstr(i) $(DoConfig) == "YES"
  527.     endif
  528.     Exit
  529. [Install-Update]
  530.    set STF_VITAL        = ""
  531.    set STF_OVERWRITE    = "VERIFYSOURCEOLDER"
  532.    AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  533.    exit
  534. [Source Media Descriptions]
  535.     1 = "Windows NT Server CD-ROM", TAGFILE = cdrom_s.40
  536. [Signature]
  537.     FileType = MICROSOFT_FILE
  538. [GetSignature]
  539.     read-syms Signature
  540.     return $(FileType)
  541. [ProductType]
  542. STF_PRODUCT  = LanmanNT
  543. STF_PLATFORM = I386
  544. [Files-Inf]
  545. 2,    oemsetup.inf,     SIZE=1000,    RENAME=$(!UG_Filename)
  546. [Files-UBPC]
  547. 1,UBNEI.BIN , SIZE=999
  548. 1,UBNEI.SYS , SIZE=999
  549. [Files-UBPCEOTP]
  550. 1,UBNEI.BIN , SIZE=999
  551. 1,UBNEI.SYS , SIZE=999
  552. [Files-UBPS]
  553. 1,UBNEI.BIN , SIZE=999
  554. 1,UBNEI.SYS , SIZE=999
  555. [LanguagesSupported]
  556.     ENG
  557. [OptionsTextENG]
  558.     UBPS     = "Ungermann-Bass Ethernet NIUps Adapter"
  559. [FileConstantsENG]
  560. ProCaption   = "Windows NT Setup"
  561. ProCancel    = "Cancel"
  562. ProCancelMsg = "Windows NT Networking is not correctly installed.  "+
  563.                "Are you sure you want to cancel copying files?"
  564. ProCancelCap = "Network Setup Message"
  565. ProText1     = "Copying:"
  566. ProText2     = "To:"
  567. FunctionTitle   = "Ungermann-Bass Adapter Card Setup"
  568. ProductSoftwareDescription      = "Ungermann-Bass Adapter Driver"
  569. ProductHardwareDescription      = "Ungermann-Bass Ethernet NIUps Adapter"
  570. CANNOT_FIND_ANY_CARD            = "Network card is not present in the system"
  571. ProductSoftwareTitle    = "Ungermann-Bass Driver"
  572. ProductHardwareTitle    = "Ungermann-Bass Ethernet NIUps Adapter"
  573. ShellCodeErrorTitle     = "Error: "$(FunctionTitle)
  574. ShellCodeErrorText      = "Shell Code Error."
  575. [DialogConstantsENG]
  576. Help        = "&Help"
  577. Exit        = "Cancel"
  578. OK          = "OK"
  579. HelpContext = ""
  580. Continue    = "C&ontinue"
  581. Cancel      = "C&ancel"
  582. [FileDependentDlgENG]
  583.